package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WindowClause {

    private int beginIndex;
    private int endIndex;
    private WindowDefinitionList windowDefinitionList;

    public WindowClause(int beginIndex, WindowDefinitionList windowDefinitionList) {
        this.beginIndex = beginIndex;
        this.endIndex = windowDefinitionList.get(windowDefinitionList.size() - 1).getEndIndex();
        this.windowDefinitionList = windowDefinitionList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public WindowDefinitionList getWindowDefinitionList() {
        return windowDefinitionList;
    }

}
